﻿#ifndef PST_DIALOGINTERPOLATION_H
#define PST_DIALOGINTERPOLATION_H

#include <IdaDialogFrame>
#include "PostEnumType.h"
QT_BEGIN_NAMESPACE
namespace Ui { class DialogInterpolation; };
QT_END_NAMESPACE

namespace pst
{
    class LineChartWindow;
    class DialogInterpolation : public IdaDialogFrame
    {
        Q_OBJECT

    public:
        DialogInterpolation(QWidget* parent, LineChartWindow* lineChartWindow);
        ~DialogInterpolation();

        void setInterpolationType(InterpolationType type);
        void setInit(QStringList& params);

    public slots:
        void on_pushButton_confirm_clicked();
        void on_pushButton_cancel_clicked();

    private:
        Ui::DialogInterpolation* ui;
        LineChartWindow* m_lineChartWindow{nullptr};
        InterpolationType m_interpolationType{InterpolationType::None};
    };
}

#endif
